package com.ty.init.mapper;

import com.ty.init.pojo.User;
import com.ty.init.uitl.Vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author ty
 */
public interface UserMapper {
    public User findByUsername(String username);
    public List<User> findUsers();
    public List<User> findUsersLimit(@Param("start") Integer start,
                                     @Param("pageSize") Integer pageSize);
    public Integer addUser(User user);
    public Integer deleteUser(Integer uid);
    public Integer updateMessage(User user);
    public User findById(Integer uid);
    public Integer changePassword(Integer uid,String password);
    public List<UserVo> userMessage();
}
